﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlogDemo.Common
{
    /// <summary>
    /// 领域实体接口
    /// </summary>
    public interface IEntity
    {
    }
    /// <summary>
    /// 领域实体接口，用作泛型约束，表示继承自该接口的为领域实体
    /// </summary>
    public interface IEntity<TKey> : IEntity where TKey : IComparable<TKey>
    {
        TKey Id { get; set; }
    }
}
